import request from '@/utils/request'

export function getDepartment() {
  return request({
    url: '/company/department',
    method: 'get'
  })
}
export function del(id) {
  return request({
    url: '/company/department/' + id,
    method: 'DELETE'
  })
}
export function staff() {
  return request({
    url: '/sys/user/simple',
    method: 'GET'
  })
}
export function postDepartment(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
export function modify(id) {
  return request({
    url: '/company/department/' + id,
    method: 'put'
  })
}
